﻿using Blog.Domain;
using Core.Repository.Where;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Application.Condition
{
   public class FriendLinkCodnition: PageCondition
    {
        /// <summary>
        /// 是否通过
        /// </summary>
        public bool? IsPass { get; set; }
        public Expression<Func<FriendLink, bool>> BuildExpression()
        {
            ParseCondition<FriendLink> parseCondition = new ParseCondition<FriendLink>();
            if (IsPass.HasValue)
                parseCondition.BuildExpression("IsPass", IsPass.Value, ConditionOperation.Equal);
            return parseCondition.BuildWhereExpression();
        }
    }
}
